package com.cw.DesignModel23.Behavioral.MediatorPattern.Mediator2;

//抽象中介者类
public abstract class Mediator {
    /**
     * 将给中介者对象，加入到集合中
     * @param colleagueName
     * @param colleague
     */
    public abstract void register(String colleagueName, Colleague colleague);

    /**
     * 接收消息, 具体的同事对象发出
     * @param stateChange
     * @param colleagueName
     */
    public abstract void getMessage(int stateChange, String colleagueName);

    public abstract void sendMessage();
}

